package me.exchange.com.modules.system.service.impl;

import me.exchange.com.modules.system.dao.qiniuConfigMapper;
import me.exchange.com.modules.system.entity.qiniuConfig;
import me.exchange.com.modules.system.entity.qiniuConfigExample;
import me.exchange.com.modules.system.service.QiniuConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author zjj
* @date 2020-05-14
*/
@Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
public class QiniuConfigServiceImpl implements QiniuConfigService {

    @Autowired
    private qiniuConfigMapper qiniuConfigMapper;


    @Override
    public long countByExample(qiniuConfigExample example) {
        return qiniuConfigMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(qiniuConfigExample example) {
        return qiniuConfigMapper.deleteByExample(example);
    }

    @Override
    public int insert(qiniuConfig record) {
        return qiniuConfigMapper.insert(record);
    }

    @Override
    public int insertSelective(qiniuConfig record) {
        return qiniuConfigMapper.insertSelective(record);
    }

    @Override
    public List<qiniuConfig> selectByExample(qiniuConfigExample example) {
        return qiniuConfigMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(qiniuConfig record, qiniuConfigExample example) {
        return qiniuConfigMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(qiniuConfig record, qiniuConfigExample example) {
        return qiniuConfigMapper.updateByExample(record, example);
    }
}